//
//  IcRecommendationsMngr.h
//  IceClear
//
//  Created by P & C on 3/21/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IcRecommendation.h"
#import "IcMaterialsMngr.h"

// This class handles management of data related to
// ice melting recommendations (Recommendation models).
// It basically answers questions related to recommendations.

@interface IcRecommendationsMngr : NSObject {
	NSArray* facilityTypes;
	NSArray* precipitationTypes;
	NSArray* usageTypes;
	NSDictionary* drySaltingRates;
	NSDictionary* liquidSaltingRates;
	IcMaterialsMngr* materialsManager;
	NSMutableArray* recommendationArray;
}

@property(readonly) NSArray* usageTypes;
@property(readonly) NSArray* facilityTypes;
@property(readonly) NSArray* precipitationTypes;
@property(readonly) NSDictionary* drySaltingRates;
@property(readonly) NSDictionary* liquidSaltingRates;
@property(retain) IcMaterialsMngr* materialsManager;
@property(retain) NSMutableArray* recommendationArray;


-(id)initWithDefaults;
-(NSString *)usageOfType:(NSUInteger)u;
-(NSString *)facilityOfType:(NSUInteger)u;
-(NSString *)precipitationOfType:(NSUInteger)u;
-(void)saveNewRecommendation:(IcRecommendation*)recommendation;

-(IcRecommendation *)getRecommendationTo:(NSUInteger)use onFacilityOfType:(NSUInteger)facilityType 
		   atTemperature:(NSUInteger)temperature forPrecipitationOfType:(NSUInteger)precipitationType;


+(id)recommendationsManager;

@end
